//
//  logRegisterViewController.m
//  ILiangCang
//
//  Created by ZX on 16-4-14.
//  Copyright (c) 2016年 CRQ. All rights reserved.
//

#import "logRegisterViewController.h"
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
@interface logRegisterViewController ()



@end

@implementation logRegisterViewController




- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.navigationController.navigationBarHidden = YES;
    
    UIView * mainView = [[UIView alloc]init];
    mainView.frame = [UIScreen mainScreen].bounds;
    [self.view addSubview:mainView];
    UIImageView * bg = [[UIImageView alloc]initWithFrame:self.view.frame];
    bg.image = [UIImage imageNamed:@"loginBG0.jpg"];
    [mainView addSubview:bg];
    UIButton * backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    backBtn.frame = CGRectMake(WIDTH-55, 18, 40, 40);
    [backBtn setBackgroundColor:[UIColor clearColor]];
    [backBtn setBackgroundImage:[UIImage imageNamed:@"btn_close"] forState:UIControlStateNormal];
    [backBtn addTarget:self action:@selector(backBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [mainView addSubview:backBtn];
    
    
    
}

-(void)backBtnClick
{
    
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
